package com.project.bean;

public class StudentBean {
    /**学号*/
    private int Id;
    /**学生姓名*/
    private String name;
    /**班级名称*/
    private ClassBean className;

    public StudentBean() {
    }

    public StudentBean(String name, ClassBean className) {
        this.name = name;
        this.className = className;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ClassBean getClassName() {
        return className;
    }

    public void setClassName(ClassBean className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", className=" + className.getName() +
                '}'+"\n";
    }
}
